package com.auxgroup.smarthome.repo;

import com.auxgroup.smarthome.constant.cache.CachedConsant;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * 获取所有设备开启状态下的峰谷节电时间配置缓存
 */
@Repository
public class AppPeakValleyRedisRepo extends BaseRepo{

    public static final String PEAK_VALLEY_ELECTRICITY_PREFIX = CachedConsant.PEAK_VALLEY_REDIS_KEY_PREFIX+"*"; // 峰谷节电用电曲线缓存前缀;

    public AppPeakValleyRedisRepo(@Value("${appScheduleJob.shardingTotalCount}") int shardingTotalCount) {
        super(PEAK_VALLEY_ELECTRICITY_PREFIX, shardingTotalCount);
    }
}
